package s47.dqj.dao;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;

import s47.dqj.bean.MedicalType;

public interface MedicalTypeDaoInf {

	@Resource(name = "sessionFactory")
	public abstract void setSupperSessionFactory(SessionFactory sessionFactory);

	/**
	 * 查询全部药品种类
	 * @return
	 */
	public abstract List<MedicalType> findAll();

	/**
	 * 新增
	 * @param medicalType
	 */
	public abstract void save(MedicalType medicalType);

	/**
	 * 修改
	 * @param medicalType
	 */
	public abstract void update(MedicalType medicalType);

	/**
	 * 删除
	 * @param medicalType
	 */
	public abstract void delete(MedicalType medicalType);

}